home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / cli / UnixUtils.lha / UnixUtils / Source / mlo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-27  |  1.8 KB  |  57 lines

  1. /*---------------------------------------*
  2.  | File: MLO.h - My personal definitions |
  3.  | MLO 880908 - Revised 911126 - v2.20   |
  4.  +---------------------------------------+------------------*
  5.  | This file contains my personal definitions in a computer |
  6.  | dependent environment; has been used with VAX-C on VAXes |
  7.  | under VMS, Borland Turbo-C on MS-DOS, SAS/Lattice C for  |
  8.  | AmigaDOS and ULTRIX (Digital's flavor of Unix); it uses  |
  9.  | the preprocessor symbols predefined from these compilers |
  10.  | (#ifdef VAXC, __TURBOC__, AMIGA or unix). It worked on   |
  11.  | MS-DOS with Aztec-C; should still work there if none of  |
  12.  | the quoted symbols is defined for the C preprocessor,    |
  13.  | but has not been tested.                                 |
  14.  *----------------------------------------------------------*/
  15.  
  16. /*--------------------------*
  17.  | Program completion codes |
  18.  *--------------------------*/
  19.  
  20. #ifdef VAXC
  21. #include <ssdef>
  22. #define SYS_NORMAL_CODE SS$_NORMAL
  23. #define SYS_ABORT_CODE  SS$_ABORT
  24. #else
  25. #define SYS_NORMAL_CODE 0
  26. #define SYS_ABORT_CODE  1
  27. #endif
  28.  
  29. /*-------------------*
  30.  | Boolean variables |
  31.  *-------------------*/
  32.  
  33. #define False           0
  34. #define True            1
  35. typedef short int       Boolean;
  36.  
  37. /*--------------------------------------------------*
  38.  | Miscellaneous definitions; some of them from the |
  39.  | Amiga specific include files (<exec/types.h> and |
  40.  | <intuition/intuition.h>).                        |
  41.  *--------------------------------------------------*/
  42.  
  43. #ifndef EXEC_TYPES_H
  44. typedef unsigned char           BYTE;
  45. typedef unsigned long int       ULONG;
  46. typedef unsigned short int      USHORT;
  47. #endif
  48.  
  49. #ifndef INTUITION_INTUITION_H
  50. #define FOREVER   for (;;)
  51. #endif
  52.  
  53. #define BLANK     ' '
  54. #define NEWLINE   '\n'
  55. #define NIHIL     '\0'
  56. #define TAB       '\t'
  57.